package com.shop.pojo.sms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//首页轮播广告
@TableName("sms_home_adv")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Sms_Home_Adv {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;//名字
    private String pic;//图片地址
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date start_time;//开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date end_time;//结束时间
    private int status;//状态
    private int click_count;//点击数
    private String url;//广告详情连接地址
    private String note;//备注
    private int sort;//排序
    private Long publisher_id;//发布者
    private Long auth_id;//审核者
}
